<th class="ad-select-cell" ng-if="attrs.rowExpandTemplate">
  <i></i>
</th>
<th data-ng-repeat="definition in visibleColumnDefinition"
    ng-click="sortByColumn(definition)"
    ng-class="{'ad-cursor-pointer': definition.sortKey}"
    ng-style="{'width': definition.width}">
  <div class="ad-display-inline-block"
       ng-if="definition.columnHeaderTemplate"
       ad-compile-template="definition.columnHeaderTemplate"></div>
  <div class="ad-display-inline-block"
       ng-if="definition.columnHeaderDisplayName"
       ng-bind="definition.columnHeaderDisplayName"></div>
  <div ng-class="{'ad-display-inline-block': attrs.snugSortIcons, 'pull-right': !attrs.snugSortIcons}"
       ng-if="definition.sortKey && localConfig.predicate == definition.sortKey">
    <i ng-class="iconClasses.sortAscending" ng-hide="localConfig.reverse"></i>
    <i ng-class="iconClasses.sortDescending" ng-show="localConfig.reverse"></i>
  </div>
  <div ng-class="{'ad-display-inline-block': attrs.snugSortIcons, 'pull-right': !attrs.snugSortIcons}"
       ng-if="definition.sortKey && localConfig.predicate != definition.sortKey">
    <i ng-class="iconClasses.sortable"></i>
  </div>
</th>